#include "static.h"
#include <string.h>
#include <iostream>
using namespace std;
int Angajat::count=0;

int Angajat::getCount(){
	return count;
}
Angajat::Angajat(const char*const firstname,const char*const lastname){
	first=new char[strlen(firstname)+1];
	strcpy(first,firstname);
	last=new char[strlen(lastname)+1];
	strcpy(last,lastname);
	count++;
	cout<<"\nConstructor pentru "<<(*this).first<<" "<<(*this).last<<endl;
}
Angajat::~Angajat(){
	cout<<"\nDestructor for "<<(*this).first<<" "<<(*this).last<<endl;
	delete [] first;
	delete [] last;
	count--;
}
const char *Angajat::getFirst()const{
return first;
}
const char *Angajat::getLast()const{
return last;
}
